<div class="breadcrum">
    <p>
        <a href="{$config->site_url('master/overview')}">Master</a>
        <span></span><a href="{$config->site_url('master/kategoribarang')}">Kategori Barang</a>
        <span></span><small>Tambah Data</small>
    </p>
    <div class="clear"></div>
</div>  
<div class="sub-content">  
    <div class="navigation">  
        <div class="navigation-button">
            <ul>
                <li><a href="{$config->site_url('master/kategoribarang/add')}"><img alt="" src="{$BASEURL}/resource/doc/images/icon/add-icon.png">Tambah Data</a></li>
                <li><a href="{$config->site_url('master/kategoribarang')}"><img alt="" src="{$BASEURL}/resource/doc/images/icon/icon.notes.blue.png">Daftar Data</a></li> 
            </ul>
            <div class="clear"></div>
        </div>
    </div> 
    <!-- notification template -->
    {include file="base/templates/notification.html"}
    <!-- end of notification template--> 
    <form action="{$config->site_url('master/kategoribarang/add_process')}" method="post">
        <table width="100%" class="table-input">
            <tbody>
                <tr class="headrow">
                    <th colspan="2">Tambah Kategori Barang</th>
                </tr>
                <tr>
                    <td width="20%">Kode</td>
                    <td width="80%">
                        <input type="text" maxlength="1" size="1" name="kategoribarang_cd" value="{$result.kategoribarang_cd|default:''}">
                        <small>* wajib diisi</small>
                    </td> 
                </tr>
                <tr>
                    <td>Nama</td>
                    <td>
                        <input type="text" maxlength="100" size="40" value="{$result.kategoribarang_name|default:''}" name="kategoribarang_name">
                        <small>* wajib diisi</small>
                    </td> 
                </tr> 
                <tr>
                    <td>Group Barang</td>
                    <td>
                        <select name="gpbarang_cd">
                            <option value=""></option>
                            {foreach from=$rs_gpbarang item=data}
                            <option value="{$data.gpbarang_cd|default:''}" {if {$result.gpbarang_cd|default:''} eq $data.gpbarang_cd}selected="selected"{/if}>{$data.gpbarang_name}</option>
                            {/foreach}
                        </select>
                        <small>* wajib diisi</small>
                    </td> 
                </tr>
                <tr>
                    <td>Barang Susut</td>
                    <td>  
                        <label><input type="radio" name="kategoribarang_susut"  checked="checked" value="ya">IYA</label>
                        <label><input type="radio" name="kategoribarang_susut"  value="tidak">TIDAK</label>
                    </td>
                </tr>
                <tr class="submit-box">
                    <td colspan="2">
                        <input type="submit" class="edit-button" value="Simpan" name="save[insert]">
                        <input type="reset" class="edit-button" value="Reset" name="save[reset]">
                    </td>
                </tr>
            </tbody>
        </table>
    </form> 
</div>